var Module = require("../../../class/user/module.c");
module.exports = {
    prefix: "/user/module/",
    get: {
        "listall": {
            des: {
                name: "getModuleListAll",
                content: "获取所有版块",
                params: []
            },
            method: function* () {
                var self = this;
                print("获取所有版块");
                try {
                    var _module_list = yield new Module().getAll();
                    self.body = _module_list;
                } catch (e) {
                    self.body = printError(e);
                };
            }
        }
    }
}